package com.superm.mappers;

import com.superm.entity.Department;
import com.superm.entity.MemberLeve;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberLeveMapper {

    /**
     * 查询全部信息
     * @return
     */
    List<MemberLeve> selectAll();

    /**
     * 根据条件查询指定信息
     * @return
     */
    List<MemberLeve> allMemberLeve(@Param("memberLeve")MemberLeve memberLeve, @Param("pageNo") Integer pageNo, @Param("pageSize")Integer pageSize);

    /**
     * 根据编号查询信息
     * @param memberLeveId
     * @return
     */
    MemberLeve selectMemberLeveId(@Param("memberLeveId")Integer memberLeveId);

    /**
     * 查询总条数
     * @param memberLeve
     * @return
     */
    int selectCount(@Param("memberLeve")MemberLeve memberLeve);

    /**
     * 修改信息
     * @param memberLeve
     * @return
     */
    int updateInfoMemberLeve(@Param("memberLeve")MemberLeve memberLeve);

    /**
     * 添加信息
     * @param memberLeve
     * @return
     */
    int addInfoMemberLeve(@Param("memberLeve")MemberLeve memberLeve);

    /**
     * 删除用户信息
     * @param memberLeveId
     * @return
     */
    int deleteInfoMemberLeve(@Param("memberLeveId")Integer memberLeveId);

}
